<?php
use yii\bootstrap\Nav;

$position_id = Yii::$app->request->get('position_id', 0);

echo Nav::widget([
    'items' => [
        [
            'label' => '广告管理',
            'url' => ['ad/index', 'position_id' => $position_id],
        ],
        [
            'label' => '添加广告',
            'url' => ['ad/create', 'position_id' => $position_id],
        ],
        [
            'label' => '返回广告位',
            'url' => ['ad-position/index'],
        ]
    ],
    'options' => ['class' => 'nav-tabs'],
]);